// 鸟类类
class Bird extends Animal implements Fly,Swim{

    public Bird() {
    }

    public Bird(String animalType, int age) {
        super(animalType, age);
    }

    @Override
    public void fly() {
        System.out.println(getAge() + "岁的" + getAnimalType() +"飞翔");
    }

    @Override
    public void swim() {
        System.out.println(getAge() + "岁的" + getAnimalType() +"游泳");
    }
}